/**
 * 运势
 */
import request from '../../utils/request'
import { juheToken, tianxingToken } from '../config'

export function luckyInfo(consName = '天秤座', type = 'today') {
  consName = decodeURIComponent(consName)
  const url = `https://web.juhe.cn/constellation/getAll?consName=${consName}&type=${type}&key=${juheToken}`
  return request({
    url,
  })
}

/**
 * 每日一句
 */

export function calendarPhrasesy() {
  const url = `http://api.tianapi.com/everyday/index?key=${tianxingToken}&rand=1`
  return request({
    url,
    method: 'GET'
  })
}